/// id : 524
/// name : "EMS"
/// description : "储能ems"
/// code : "110029"
/// subsystemId : 2
/// refIds : null
/// classType : 1
/// config : "{\"selectDisplay\": 0}"

class DeviceTypeModel {
  DeviceTypeModel({
      num? id, 
      String? name, 
      String? description, 
      String? code, 
      num? subsystemId, 
      dynamic refIds, 
      num? classType, 
      String? config,}){
    _id = id;
    _name = name;
    _description = description;
    _code = code;
    _subsystemId = subsystemId;
    _refIds = refIds;
    _classType = classType;
    _config = config;
}

  DeviceTypeModel.fromJson(dynamic json) {
    _id = json['id'];
    _name = json['name'];
    _description = json['description'];
    _code = json['code'];
    _subsystemId = json['subsystemId'];
    _refIds = json['refIds'];
    _classType = json['classType'];
    _config = json['config'];
  }
  num? _id;
  String? _name;
  String? _description;
  String? _code;
  num? _subsystemId;
  dynamic _refIds;
  num? _classType;
  String? _config;
DeviceTypeModel copyWith({  num? id,
  String? name,
  String? description,
  String? code,
  num? subsystemId,
  dynamic refIds,
  num? classType,
  String? config,
}) => DeviceTypeModel(  id: id ?? _id,
  name: name ?? _name,
  description: description ?? _description,
  code: code ?? _code,
  subsystemId: subsystemId ?? _subsystemId,
  refIds: refIds ?? _refIds,
  classType: classType ?? _classType,
  config: config ?? _config,
);
  num? get id => _id;
  String? get name => _name;
  String? get description => _description;
  String? get code => _code;
  num? get subsystemId => _subsystemId;
  dynamic get refIds => _refIds;
  num? get classType => _classType;
  String? get config => _config;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['name'] = _name;
    map['description'] = _description;
    map['code'] = _code;
    map['subsystemId'] = _subsystemId;
    map['refIds'] = _refIds;
    map['classType'] = _classType;
    map['config'] = _config;
    return map;
  }

}